package org.feng.fxfront.sys;

import lombok.Data;
import org.feng.api.sys.annotations.TableColumnDesc;

/**
 * 表头列属性定义
 *
 * @author feng
 */
@Data
public class TableColumnDefine {
    private String columnDesc;
    private Integer order = 0;
    private String fieldName;

    public TableColumnDefine (TableColumnDesc tableColumnDesc, String fieldName) {
        this.setColumnDesc(tableColumnDesc.value());
        this.setOrder(tableColumnDesc.order());
        this.setFieldName(fieldName);
    }
}
